<template>
  <div>
    <svg-icon icon-class="skill" @click="refresh" />
  </div>
</template>

<script lang='ts'>

import { defineComponent, inject } from '@vue/runtime-core'
import { useRoute, useRouter } from 'vue-router'

export default defineComponent({
  name: '',
  setup () {
    // const router = useRouter()
    // const route = useRoute()
    // function refresh () {
    //   console.log('刷新，', route)
    //   router.replace({ path: `/redirect/${route.path.slice(1)}`, query: route.query })
    // }
    // return {
    //   refresh,
    // }
    const refresh = inject('refresh')
    return {
      refresh,
    }
  },
})
</script>

<style scoped lang="less">

</style>
